package com.yuzai.reading.services.impl;


import com.yuzai.reading.entitys.NoticeEntity;
import com.yuzai.reading.mappers.NoticesMapper;
import com.yuzai.reading.services.NoticesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class NoticesServiceImpl implements NoticesService {

    @Autowired
    private NoticesMapper noticesMapper;

    @Override
    public List<NoticeEntity> queryNotices(int type) {
        List<NoticeEntity> noticeEntities = noticesMapper.queryNotices(type);
        return noticeEntities;
    }
}
